package com.rogo.rogobox.controllers
{
	import com.rogo.mvc.interfaces.INotification;
	import com.rogo.mvc.sub.command.Command;
	import com.rogo.rogobox.views.components.windows.ViewerWindow;
	
	public class ShowViewerCommand extends Command
	{
		public function ShowViewerCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			// notification.param : image url
			var source:String = notification.param as String;
			
			var viewer:ViewerWindow = new ViewerWindow();
			viewer.source = source;
			viewer.open();
		}
		
	}
}